﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 后台菜单
    /// </summary>
    public class SystemMenus:BaseEntity
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "后台菜单名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "后台菜单链接")]
        public string Link { get; set; }

        [StringLength(50), Column(TypeName = "varchar(50)")]
        [Display(Name = "后台菜单图标")]
        public string Icon { get; set; }

        [Display(Name = "后台菜单父级Id")]
        public int ParentId { get; set; }
    }
}
